package com.shi.yibanjia.entity.dto;


import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class UserLoginDto {
    // /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "手机号不合法")
    private String phone;
    @Pattern(regexp = "\\d{6}", message = "验证码错误")
    private String code;
}
